/**
 * Created by Amaris on 2016/12/6.
 */

var express = require('express');
var router = express.Router();
var otherServiceCtrl = require('../../controller/controller.other-service.js');

router.get('/getOtherServiceInfo', function (req, res, next) {
    otherServiceCtrl.getInfo(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.post('/createOtherService', function (req, res, next) {
    otherServiceCtrl.create(req.body, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});



module.exports = router;